-- GENERATED SPELL FOR [Skybreaker Infantry] --


function spell0_31701(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(29426,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31701', 593, 1)
end

function spell1_31701(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31701', 570, 1)
end

function Sorts_31701(pUnit, Event)
local choix_sorts_31701 = math.random(0, 1)
if choix_sorts_31701 == 0 then
pUnit:RegisterEvent('spell0_31701', 1, 1)
end
if choix_sorts_31701 == 1 then
pUnit:RegisterEvent('spell1_31701', 1, 1)
end
end

function mob31701_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31701', math.random(1500, 3000), 1)
end

function mob31701_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31701_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31701_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31701, 1, 'mob31701_Action')
RegisterUnitEvent(31701, 2, 'mob31701_Leave')
RegisterUnitEvent(31701, 3, 'mob31701_Kill')
RegisterUnitEvent(31701, 4, 'mob31701_Die')
